package com.crm.DaoImpl;

import java.util.List;

import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.crm.Dao.BaseDictDao;
import com.crm.entity.BaseDict;

public class BaseDictDaoImpl extends HibernateDaoSupport implements BaseDictDao {

	public List<BaseDict> findByTypeCode(String dict_type_code) {
		
		return (List<BaseDict>) this.getHibernateTemplate().find(
				"from BaseDict where dict_type_code = ?",dict_type_code);
	}

}
